package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.njtoyo.taxi.admin.library.common.GeoPoint;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallBacklogState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 电召记录表
 * </p>
 *
 * @author Dell
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SimpleCallBacklog对象", description="电召记录表")
@Accessors(chain = true)
public class SimpleCallBacklog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "呼叫号码")
    private String mobileNumber;

    @ApiModelProperty(value = "区域Id")
    private Long areaId;

    @ApiModelProperty(value = "区域编码")
    private String adCode;

    @ApiModelProperty(value = "绑定ID")
    private Long mappingId;

    @ApiModelProperty(value = "发单区域")
    private String areaIds;

    @ApiModelProperty(value = "出发地坐标")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private GeoPoint origin;

    @ApiModelProperty(value = "出发地名称")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String originName;

    @ApiModelProperty(value = "出发地详细名称")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String originPlaceName;

    @ApiModelProperty(value = "语音文件地址")
    private String audioUrl;

    @ApiModelProperty(value = "语音文件地址的md5")
    private String audioUrlMd5;

    @ApiModelProperty(value = "处理状态 0:init[未处理];1:done[已处理];")
    private SimpleCallBacklogState state;

    @ApiModelProperty(value = "发起呼叫后 simple_call id")
    private Long callId;

    @ApiModelProperty(value = "系统自动发单时间")
    private Long systemSendTimestamp;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}
